package com.mo.ld.activity.cust

import android.os.Bundle
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.mo.ld.R
import com.mo.ld.activity.interactive.behavior.BehaviorScrollActivity
import com.mo.ld.activity.interactive.behavior.BehaviorScrollActivity2
import com.mo.ld.activity.interactive.behavior.BehaviorViewMoveActivity
import com.mo.ld.activity.interactive.behavior.BottomSheetBehaviorActivity
import com.mo.ld.base.BBaseListActivity
import com.mo.ld.bean.ActionBean
import com.mo.lib.utils.*
import com.mo.lib.view.recyclerview.getAdapterQuick
import com.mo.lib.view.recyclerview.layoutG

/**
 * @ author：mo
 * @ data：2022/3/25:14:57
 * @ 功能：Behavior相关
 */
class CustsActivity : BBaseListActivity<ActionBean>() {
    override fun initView(savedInstanceState: Bundle?) {
        super.initView(savedInstanceState)
        viewBinding?.krvBaseList?.layoutG(2)
    }

    override fun getList(page: Int) {
    }

    override fun getMore(page: Int) {
    }

    override fun creatAdaper(): BaseQuickAdapter<ActionBean, BaseViewHolder> {
        return getAdapterQuick(R.layout.item_main,
            arrayListOf(
                ActionBean("旋转签字版") {
                    startActivity<QianzibanActivity>()
                },
            ),
            block = { holder, item ->
                holder.setText(R.id.tv_item_main, item.name).itemView.setClick {
                    item.event.invoke()
                }
            })

    }


}